import Vue from "vue";
import vuex from "vuex";
import home from "./home";
import user from "./user";

Vue.use(vuex);

//服务员，传递---谁也不属于的服务员
const actions = {};

// 厨师，具体操作
const mutations = {};

// 原始的数据
const state = {
  a: 1, //根数据
  b: 2, //根数据
};

// vuex中的计算属性
const getters = {};

const store = new vuex.Store({
  actions,
  mutations,
  state,
  getters,
  modules: {
     home,
     user,
  },
});

export default store;
